// 以下是业务服务器API地址
// 本机开发时使用
var WxApiRoot = 'http://localhost:8080/wx/';
// 局域网测试使用
 //var WxApiRoot = 'http://192.168.0.101:8080/wx/';
//var WxApiRoot = 'http://192.168.0.129:8080/wx/';
// var WxApiRoot = 'http://192.168.0.22:8080/wx/';
// 云平台上线时使用
// var WxApiRoot = 'https://www.rzjspxxh.com/wx/';

module.exports = {

  /**
   * 由于会话保存时间过短，登陆后，通过
 cmd  * wx.setStorageSync("user",res.data);
   * 这个方法保存到本地，方式会话过期
   * ************************************************
   */
  
  key:'1cc56a10-18e9-4f6c-baaa-a6b8b2eada7a',
  scanBindManagerUrl:WxApiRoot+'bindManager/scanBindManager',
  queryCoachMonthSuggUrl:WxApiRoot+'suggestion/queryCoachMonthSugg',
  getWxBindCoachUrl:WxApiRoot+'suggestion/getWxBindCoach',//微信绑定学员的教练
  //下面的地址用于驾校管理
  bindManagerUrl: WxApiRoot+'bindManager/bind',//微信与驾校工作人员绑定
  clearBindById:WxApiRoot+'bindManager/clearBind',//解除用户绑定的角色
  checkUserUrl:WxApiRoot+'bindManager/checkUser',//进行授权判定，页面跳转
  schoolDetailUrl:WxApiRoot+'bindManager/schoolDetail',//获取工作人的基本信息  √
  mangerIdDataUrl:WxApiRoot+'bindManager/mangerIdData',//根据驾校管理人员的ID，获取基本数据  √
  getCodeUrl:WxApiRoot+'bindManager/getCode',//获取短信验证码
  //getUserDetail  获取用户信息
  Verificationinformation:WxApiRoot+'bindManager/verification',//驾校中心绑定信息验证输入信息是否正确
  schoolStarUrl:WxApiRoot+'depts/schoolStar',//星级驾校排名
  cameraUrl:WxApiRoot+'camera/cameraDetail',//获取当前驾校的摄像头监控
  schoolCaneraUrl:WxApiRoot+'camera/schoolCanera',//获取驾校监控列表
  getUserDetailUrl:WxApiRoot+'user/getUserDetail',  //  √
  getStepByUid:WxApiRoot+'user/getuserStep',//根据userid获取step
  getsigningStatus:WxApiRoot+'user/getsigningStatus',//根据userid获取合同签署状态
  payOkListlUrl:WxApiRoot+'user/payOkList',//获取学员缴费成功的记录  √
  getStuDetailForIdUrl:WxApiRoot+'user/getStuDetailForId',  //  √
  getHtUrl:WxApiRoot+'user/getHturl',//根据用户id去获取合同链接
  schoolStuEvalUrl:WxApiRoot + 'schoolEval/schoolStuEval',
  queryAllHospitalUrl:WxApiRoot + 'healthCheck/queryAllHospital',//获取全部的医院体检网点
  queryAllKswdUrl:WxApiRoot + 'healthCheck/queryAllKswd',
  queryAuthUrlByUserid:WxApiRoot+'user/queryAuthUrlByUserid',//根据用户id获取认证链接
  againHtUrl:WxApiRoot+'user/againHtUrl',//重新获取授权链接
  //获取学员数据
  queryUserByWxidUrl:WxApiRoot+'user/queryUserByWxid',  //  √
  bindUserUrl:WxApiRoot+'user/bindUser',
  bdingPcUserUrl:WxApiRoot+'user/bdingPcUser',
  //登陆就要和服务器进行数据通讯，来确保用户信息准确
  checkLoginByWeixin: WxApiRoot + 'auth/checkLoginByWeixin',  //  √
  //进行学员是否报名认证
  stuPayToYjx:WxApiRoot + 'suggestion/checkUser',
  /*************************************************************** */
  //获取新闻列表
  queryNewsAll:WxApiRoot + 'news/queryNewsAll',
  newsDetailById:WxApiRoot + 'news/queryNewsById',
  AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin', //微信登录V1
  //不需要和微信用户进行数据绑定
  AuthRegisterCaptcha: WxApiRoot + 'auth/regCaptcha', //验证码V1 
  StorageUpload: WxApiRoot + 'storage/upload', //图片上传,  √
  CardStorageUpload: WxApiRoot + 'storage/cardupload',//身份证图片上传  √
  RegionList: WxApiRoot + 'region/list',  //区域数据
  //获取问卷的全部内容
  queryAllWq:WxApiRoot + 'wqpj/querywq',
  checkUserWq:WxApiRoot + 'wqpj/checkUserWq',//进行判断是否进行问卷评价
  queryCoachEvalDetail:WxApiRoot + 'wqpj/queryDetail',//进行判断是否进行问卷评价
  saveCoachEvalWq:WxApiRoot + 'wqpj/saveCoachEvalWq',//进行判断是否进行问卷评价
  clearWq:WxApiRoot + 'wqpj/clearWq',//页面初始化时删除评价信息
  countWq:WxApiRoot + 'wqpj/countWq',//统计选择了几个选项
  updateStarRating:WxApiRoot + 'wqpj/updateStarRating',
  updateContent:WxApiRoot + 'wqpj/updateContent',
  queryHtByUserIdAndClassIdUrl:WxApiRoot + 'classType/queryHtByUserIdAndClassId',
  saveUserHtUrl:WxApiRoot + 'classType/saveUserHt',


  GetUserWxInfo: WxApiRoot + 'auth/wxInfoById',//获取微信用户数据
  //获取全部车型
  getAllCarModel: WxApiRoot + 'carmodel/getAll',

  zjlSchoolList: WxApiRoot + 'depts/list_jbx',//机构数据-找教练-选择项目
  SchoolListByCgJt: WxApiRoot + 'depts/listCgJt',//机构数据
  SchoolList: WxApiRoot + 'depts/list',//机构数据
  SchoolListByModel: WxApiRoot + 'depts/listByModel',//机构数据
  SchoolDetail: WxApiRoot + 'depts/detail', //驾校详情
  querySchoolDetail:WxApiRoot + 'depts/querySchoolDetail',//获取驾校详细信息
  SchoolDetailorModel: WxApiRoot + 'depts/detailormodel', //驾校详情  可以根据所驾驶车型查询
  SchoollicensePlate: WxApiRoot + 'depts/getlicensePlate', //驾校详情的教练车信息
  mySchoolDetailUrl: WxApiRoot + 'depts/mySchoolDetail',
  MySchoolInfo: WxApiRoot + 'depts/mySchoolInfo',//我的驾校信息   V2  √
  getCoachSign: WxApiRoot + 'depts/getCoachSign',//获取当前教练标识  V2
  listStarUrl:WxApiRoot + 'coachs/listStar',//星级教练
  CoachlList: WxApiRoot + 'coachs/list',//教练数据
  CoachlDetail: WxApiRoot + 'coachs/detail', //教练详情

  getPublickey:WxApiRoot+'signUp/getPublicKey', //获取公钥
  queryinfobyId: WxApiRoot + 'signUp/userByid',//根据用户的ID，获取用户的基本信息   V2  √
  signUpSave: WxApiRoot + 'signUp/save',  //报名信息保存   V2
  signUpOcr: WxApiRoot + 'signUp/ocrIdCard',  //身份证上传识别
  signUpGetDetail: WxApiRoot + 'signUp/detail',   //   V2
  signUpGetClassType: WxApiRoot + 'signUp/getClassType',//获取驾校班型
  signUpUpdate: WxApiRoot + 'signUp/update',//更新报名信息  V2
  getPayInfo: WxApiRoot + 'signUp/getPayInfo', //获取缴费信息
  getPayParam: WxApiRoot + 'signUp/getPayParam', //获取缴费参数  V2
  getStep: WxApiRoot + 'signUp/getStep',  //获取报名进度信息   V2
  getStepByUidUrl: WxApiRoot + 'signUp/getStepByUid',  //获取报名进度信息   V2  √
  getClassTypeInfo: WxApiRoot + 'signUp/getStuClassTypeInfo',  //获取报名班型信息   V2
  savePayInfo: WxApiRoot + 'signUp/savePayInfo', //保存支付信息

  AppointmentMySchoolInfo: WxApiRoot + 'appointment/mySchoolInfo',//我的预约培训信息   V2  √
  AppointmentSave: WxApiRoot + 'appointment/save',  //预约培训   V2
  AppointmentRecord: WxApiRoot + 'appointment/list',  //预约记录  V2

  IndexList: WxApiRoot + 'index/index',  //首页数据信息
  ClassTypeList: WxApiRoot + 'classType/list',  //首页班型更多
  CheckEval: WxApiRoot + 'index/check',  //检测当前学员是否可评价 V2

  HealthCheckInfo: WxApiRoot + 'healthCheck/info',  //体检信息   V2  √
  PayInfo: WxApiRoot + 'payInfo/info',  //缴费信息   V2  √
  AchievementInfo: WxApiRoot + 'achievement/info',  //考试成绩   V2
  LearnTimeMySchoolInfo: WxApiRoot + 'learntime/mySchoolInfo',//我的学时信息   V2  √
  queryMyLearnTime: WxApiRoot + 'learntime/getXsDetail',//查询当前学员的学时
  queryTime: WxApiRoot + 'learntime/queryHour',//查询标准学时
  SchoolEval: WxApiRoot + 'schoolEval/save',  //评价驾校   V2
  CoachEval: WxApiRoot + 'coachEval/save',  //评价教练    V2
  RefundSave: WxApiRoot + 'refund/save',  //申请退费    V2
  SuggestionSave: WxApiRoot + 'suggestion/save',  //意见箱信息保存    V2
  ApplyCoachSave: WxApiRoot + 'applyCoach/save',  //教练认证信息保存   V2
  CoachAppointList: WxApiRoot + 'appointment/coachAppointList',  //教练助手-培训安排 V2
  CoachAppointSignIn: WxApiRoot + 'appointment/signIn',  //教练助手-培训安排  V2
  MyCoachInfo: WxApiRoot + 'appointment/myCoachs',  //我的教练信息   V2
  EvalStarRaning: WxApiRoot + 'coachEval/evalInfo',  //教练助手-评价星级

  ExampleSchool: WxApiRoot + 'exampleSchool/list',  //驾校排行榜
  ExampleCoach: WxApiRoot + 'exampleCoach/list',  //教练红黑榜
  CourseFilter: WxApiRoot + 'course/filter',  //培训条件筛选   V2
  xykhpmSchoolUrl:WxApiRoot + 'depts/xykhpmSchool',//驾校信誉考核
  xykhpmUrlCoach:WxApiRoot + 'depts/xykhpmCoach',//教练信誉考核
}